import { ElMessage, ElMessageBox } from 'element-plus'

export const useConfirm = () => {
	ElMessageBox.confirm('确定删除该条数据吗?', 'QFADMIN温馨提示', {
		confirmButtonText: '确定',
		cancelButtonText: '取消',
		type: 'warning'
	})
		.then(() => {
			ElMessage.success('删除成功!')
		})
		.catch(() => {
			ElMessage.info('取消删除!')
		})
}
